<template>
  <div>
    <p> {{ message }} nishishui</p>
    <div @click="goToDemo2">我是demo2</div>
    <Demo3 :age="age" :name="name"/>
  </div>
</template>
<script>
  import Demo3 from '@/components/demo3'
  export default {
    data () {
      return {
        message: 'huhuhuhu',
        age: '20',
        name: 'huahua'
      }
    },
    methods: {
      goToDemo2 () {
        this.$router.push({
          path: '/demo2'
        })
      }
    },
    components: {
      Demo3
    }
  }
</script>
